package decorator_pattern;

/**
 * @author lynn
 * @date 18-12-8 上午7:21
 */
public class Main {

    public static void main(String[] args) {

        Component component = new ConcreteDecoratorB(
                new ConcreteDecoratorA(
                        new ConcreteDecoratorB(
                                new ConcreteDecoratorA(
                                        new StringDecorator("hello world"), '?'))
                        , '=')
        );

        component.show();


    }


}
